package bo.zhao.event.custom.event;

import lombok.Getter;
import lombok.Setter;
import org.springframework.context.ApplicationEvent;

/**
 * @author ZhaoBo (zhaobo@shanshu.ai)
 * @date 2022/4/2
 */
@Setter
@Getter
public class CustomEvent extends ApplicationEvent {

    private String message;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public CustomEvent(Object source,String message) {
        super(source);
        this.message = message;
    }
}
